// src/api.js
import axios from 'axios';

const instance = axios.create({
    baseURL: 'http://localhost:8080',
});

export const postId = async (id) => {
    try {
        const response = await instance.post('/', { id });
        return response.data;
    } catch (error) {
        console.error('Error posting id:', error);
        throw error;
    }
};
